# -*- coding:utf-8 -*-
# @FileName  :per_queryreason.py
# @Time      :2020/12/9 9:39
# @Author    :Zhoujirong
# @Desc      :
from common.http_request import Request
from biz.support.urls import ServerUrl

class PerQueryReasonRequest:
    '''个人查询原因'''
    @classmethod
    def get_page(cls,curPage,maxSize,search_EQ_queryReason,cookie):
        data = {
            'curPage':curPage,
            'maxSize':maxSize,
            'search_EQ_queryReason':search_EQ_queryReason
        }
        req = Request(ServerUrl.per_queryreason_getpage_url,params=data,headers=cookie)
        return req.get()

    @classmethod
    def stop(cls,id,cookie):
        data = {
            'id':id
        }
        req = Request(ServerUrl.per_queryreason_stop_url,params=data,headers=cookie)
        return req.post()

    @classmethod
    def start(cls,id,cookie):
        data = {
            'id':id
        }
        req = Request(ServerUrl.per_queryreason_start_url,params=data,headers=cookie)
        return req.post()

    @classmethod
    def level(cls,id,approvalLevel,cookie):
        data = {
            'id':id,
            'approvalLevel':approvalLevel
        }
        req = Request(ServerUrl.per_queryreason_level_url,params=data,headers=cookie)
        return req.post()



if __name__ == "__main__":
    pass